package com.shawn.spring.boot.jdbc.entity;

import com.shawn.spring.boot.jdbc.annotation.Column;
import com.shawn.spring.boot.jdbc.annotation.Id;
import com.shawn.spring.boot.jdbc.annotation.Table;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author shawn
 * @since 2020/8/27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Table(name = "t_user")
public class User {
  @Id(name = "user_id")
  private int userId;

  private String username;
  private String password;
  private String nickname;
  private String email;

  @Column(name = "create_time")
  private Date createTime;

  @Column(name = "update_time")
  private Date updateTime;

  @Column(name = "is_deleted")
  private boolean isDeleted;
}
